Skip to content

Commit

Permalink
Removed versioning will just have to get it to manually version since…
Browse files Browse the repository at this point in the history
… the tagging and auto updating in the CI wasnt working with github default CI.
  • Loading branch information
barbacbd committed Oct 13, 2021
1 parent 739b1fe commit 92d9952
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ jobs:
python-version: 3.9
- name: Install pypa/build
run: >-
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} >> VERSION &&
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} >> VERSION &&
python -m
build
--sdist
Expand Down
Empty file removed VERSION
Empty file.
18 changes: 2 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,14 @@
from setuptools import setup, find_packages
from os import path, stat
from os import path


this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()


version="LOCAL"
if stat("VERSION").st_size > 0:
with open(path.join(this_directory, "VERSION"), encoding='utf-8') as v:
for line in v:
# make some assumptions that its not all bad data in the file
# since my CI _should_ be the one adding this data
if line.startswith("version:"):
version_info = "".join(line.split()).split(":")
if len(version_info) >= 2:
version = version_info[1]
break # exit early, don't care what else was there


setup(
name='nautical',
version=version,
version="2.2.4",
license='MIT',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 92d9952

Please sign in to comment.