diff --git a/.gitignore b/.gitignore index 53605b7..4b35f47 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ venv .pytest_cache *.egg-info .DS_Store +dist diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..b27ed64 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include requirements.txt +include VERSION \ No newline at end of file diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..1464c52 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.0.5 \ No newline at end of file diff --git a/setup.py b/setup.py index 9555bf9..4126ebb 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,9 @@ from setuptools import setup import os -VERSION = os.getenv("SEMVER", os.getenv("GitVersion_FullSemVer", "dev")) +with open("./VERSION") as version_file: + PINNED_VERSION=version_file.read().strip() def get_long_description(): with open( @@ -25,12 +26,14 @@ def get_long_description(): "Changelog": "https://github.com/CroudTech/croudtech-ecs-tools/releases", }, license="Apache License, Version 2.0", - version=VERSION, + version=PINNED_VERSION, packages=["croudtech_ecs_tools"], entry_points=""" [console_scripts] croudtech-ecs-tools=croudtech_ecs_tools.cli:cli """, + setup_requires=["setuptools_scm"], + include_package_data=True, install_requires=[ "boto3==1.20.28", "botocore==1.23.28; python_version >= '3.6'",