-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
29 lines (26 loc) · 937 Bytes
/
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
from os import path
from setuptools import setup
from setuptools_rust import Binding, RustExtension, Strip
# Read the contents of the README file:
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="advent-of-code",
url="https://github.com/fornwall/advent-of-code",
long_description=long_description,
long_description_content_type="text/markdown",
version="2024.21.0",
rust_extensions=[
RustExtension(
"advent_of_code", binding=Binding.PyO3, strip=Strip.All, py_limited_api=True
)
],
packages=["advent_of_code", "advent_of_code_cli"],
package_data={"advent_of_code": ["__init__.pyi", "py.typed"]},
entry_points={
"console_scripts": ["advent-of-code-py=advent_of_code_cli.main:main"],
},
test_suite="tests",
zip_safe=False,
)