-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (36 loc) · 1.35 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from setuptools import setup, find_packages
from setuptools_scm import get_version
from os import environ
from os.path import isfile, join
with open("README.md", "r") as fh:
long_description = fh.read()
with open(join('src','pylightnix','version.py'), 'w') as f:
f.write("# AUTOGENERATED!\n")
f.write(f"__version__:str|None = '{get_version(root='.', relative_to=__file__)}'\n")
setup(
name="pylightnix",
package_dir={'':'src'},
package_data={"pylightnix": ["py.typed"]},
zip_safe=False, # https://mypy.readthedocs.io/en/latest/installed_packages.html
use_scm_version=True,
author="grwlf",
author_email="grrwlf@gmail.com",
description="A Nix-style immutable data management library in Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/stagedml/pylightnix",
packages=find_packages(where='src'),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Topic :: System :: Software Distribution",
"Topic :: Software Development :: Build Tools",
"Intended Audience :: Developers",
"Development Status :: 3 - Alpha",
],
python_requires='>=3.6',
test_suite='pytest',
tests_require=['pytest', 'pytest-mypy', 'hypothesis'],
setup_requires=['setuptools_scm'],
)