extend setup.py with a new specific VERSION file

This commit is contained in:
p1-bmu 2021-05-10 11:35:01 +02:00
parent 253d6392a5
commit 79bdfaad3b
2 changed files with 8 additions and 4 deletions

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.4.0

View File

@ -1,17 +1,19 @@
# -*- coding: UTF8 -*-
import os
from setuptools import setup, find_packages
# get long description from the README.md and the version from VERSION
with open(os.path.join(os.path.dirname(__file__), "README.md")) as fd:
long_description = fd.read()
with open(os.path.join(os.path.dirname(__file__), "README.md")) as f:
long_description = f.read()
with open(os.path.join(os.path.dirname(__file__), "VERSION")) as fd:
version = fd.read()
setup(
name="pycrate",
version="0.4",
version=version,
#packages=find_packages(),
packages=["pycrate_core",
@ -43,6 +45,7 @@ setup(
# optional dependencies
extras_require={
"NASLTE" : ["CryptoMobile"],
"NAS5G" : ["CryptoMobile"],
"corenet" : ["pysctp", "CryptoMobile"],
"diameter_dict" : ["lxml"],
},