forked from ariel-research/networkz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (44 loc) · 1.49 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
40
41
42
43
44
45
46
47
48
49
50
51
import pathlib
import setuptools
NAME = "networkz"
URL = "https://github.com/ariel-research/" + NAME
HERE = pathlib.Path(__file__).parent
print(f"\nHERE = {HERE.absolute()}\n")
README = (HERE / "README.md").read_text()
REQUIRES = (HERE / "requirements/default.txt").read_text().strip().split("\n")
REQUIRES = [lin.strip() for lin in REQUIRES]
print(f'\nVERSION = {(HERE / NAME / "VERSION").absolute()}\n')
VERSION = (HERE / NAME / "VERSION").read_text().strip()
# See https://packaging.python.org/en/latest/guides/single-sourcing-package-version/
setuptools.setup(
name=NAME,
packages=setuptools.find_packages(),
version=VERSION,
install_requires=REQUIRES,
author="Ariel University",
author_email="[email protected]",
description="NetworkX plus plus",
keywords="optimization, graphs",
license="MIT",
license_files=("LICENSE",),
long_description=README,
long_description_content_type="text/markdown",
url=URL,
project_urls={"Bug Reports": URL + "/issues", "Source Code": URL},
python_requires=">=3.8",
include_package_data=True,
classifiers=[
# see https://pypi.org/classifiers/
"Development Status :: 2 - Pre-Alpha",
],
)
# Build:
# Delete old folders: build, dist, *.egg_info, .venv_test.
# Then run:
# python -m build
# Or (old version):
# python setup.py sdist bdist_wheel
# Publish to test PyPI:
# twine upload --repository testpypi dist/*
# Publish to real PyPI:
# twine upload --repository pypi dist/*