-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (38 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
40
41
42
"""
Build script for Adversarial Machine Learning (aml) library.
"""
import subprocess
import setuptools
# compute git hash and save to file for non-editable installs
# overriding install for package data is bugged: https://github.com/pypa/setuptools/issues/1064
version = subprocess.check_output(
("git", "rev-parse", "--short", "HEAD"), text=True
).strip()
with open("aml/VERSION", "w") as f:
f.write(f"{version}\n")
with open("README.md", "r") as f:
long_description = f.read()
setuptools.setup(
author="Ryan Sheatsley",
author_email="ryan@sheatsley.me",
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Security",
],
description="A PyTorch-based adversarial machine learning library",
install_requires=["pandas", "torch"],
license="BSD",
long_description=long_description,
long_description_content_type="text/markdown",
keywords="machine-learning pytorch adversarial-machine-learning",
name="aml",
packages=setuptools.find_packages(),
package_data={"aml": ["VERSION"]},
python_requires=">=3.10",
url="https://github.com/sheatsley/attacks",
version="1.1",
)