-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (47 loc) · 1.77 KB
/
setup.py
File metadata and controls
62 lines (47 loc) · 1.77 KB
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
52
53
54
55
56
57
58
59
60
61
62
from setuptools import setup, find_packages
from codecs import open
from os import path
# from os import environ
# import requests
HERE = path.abspath(path.dirname(__file__))
# VERSION = environ.get("VERSION")
# DEBUG = True
# if not DEBUG:
# pypi_url = "https://pypi.org/pypi/spatial-networks/json"
# else:
# pypi_url = "https://test.pypi.org/pypi/spatial-networks/json"
# if not VERSION:
# response = requests.get(url=pypi_url)
# latest_version = response.json()["info"]["version"]
# version_numbers = latest_version.split(".")
# VERSION = f"{version_numbers[0]}.{version_numbers[1]}.{int(version_numbers[2]) + 1}"
VERSION = "0.0.9"
print(f"VERSION: {VERSION}")
with open(path.join(HERE, "pypi_doc.md"), encoding="utf-8") as f:
long_description = f.read()
with open(path.join(HERE, "requirements.txt"), encoding="utf-8") as f:
requirements = f.read().split("\n")
setup(
name="spatial-networks",
version=VERSION,
description="Library to manipulate Spatial Networks",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/pauldechorgnat/spatial-networks",
author="Paul Déchorgnat",
author_email="dev.dechorgnp@gmail.com",
license="MIT",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Operating System :: OS Independent",
],
packages=find_packages(include=["spatial_networks", "spatial_networks.*"]),
include_package_data=True,
package_data={"": ["data/*.json"]},
install_requires=requirements,
)