-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (47 loc) · 1.61 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
52
53
54
55
56
57
58
59
#!/usr/bin/env python
from setuptools import setup
packages = ["orloge"]
requirementslist = ["requirements.txt"]
with open("README.md", "r") as fh:
long_description = fh.read()
required = []
for r in requirementslist:
with open(r, "r") as requirements:
required.append(requirements.read().splitlines())
kwargs = {
"name": "orloge",
"version": "0.17.2",
"packages": packages,
"description": "OR log extractor",
"long_description": long_description,
"long_description_content_type": "text/markdown",
"author": "Franco Peschiera",
"maintainer": "Franco Peschiera",
"author_email": "[email protected]",
"maintainer_email": "[email protected]",
"install_requires": required,
"url": "https://github.com/pchtsp/orloge",
"download_url": "https://github.com/pchtsp/orloge/archive/master.zip",
"keywords": "Mathematical Optimization solver log parser",
"classifiers": [
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
}
setup(**kwargs)
"""
reminder on how to deploy:
(from https://packaging.python.org/tutorials/packaging-projects/)
# installation:
python3.8 -m pip install --upgrade pip
python3.8 -m pip install --user --upgrade setuptools wheel --user
python3.8 -m pip install --user --upgrade twine --user
# bundelling
python3.8 setup.py sdist bdist_wheel
# test upload:
python3.8 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# real upload:
python3.8 -m twine upload dist/*
"""