-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (28 loc) · 1.29 KB
/
Copy pathsetup.py
File metadata and controls
31 lines (28 loc) · 1.29 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
"""Package installation setup."""
import os
import re
from pathlib import Path
from typing import Match, cast
from setuptools import find_packages, setup
_DIR = Path(__file__).parent
_PACKAGE_NAME = "wrapdisc"
setup(
name=_PACKAGE_NAME,
author="Ouroboros Chrysopoeia",
author_email="impredicative@users.noreply.github.com",
version=cast(Match, re.fullmatch(r"refs/tags/v?(?P<ver>\S+)", os.environ["GITHUB_REF"]))["ver"], # Ex: GITHUB_REF="refs/tags/1.2.3"; version="1.2.3"
description="Optimize both discrete and continuous variables using just a continuous optimizer such as in scipy.optimize",
keywords="optimization discrete continuous scipy.optimize wrapper",
long_description=(_DIR / "README.md").read_text().strip(),
long_description_content_type="text/markdown",
url="https://github.com/impredicative/wrapdisc/",
packages=find_packages(exclude=["scripts"]),
python_requires=">=3.10",
classifiers=[ # https://pypi.org/classifiers/
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)