-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
51 lines (41 loc) · 1.28 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
import os
import pathlib
from setuptools import setup, find_packages, Command
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
with open("README.md", encoding="utf-8") as f:
readme_content = f.read().strip()
class CleanCommand(Command):
"""Custom clean command to tidy up the project root."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system("rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info")
setup(
name="supermemo2",
version="3.0.1",
description="Implemented the SM-2 algorithm for spaced repetition learning.",
long_description=readme_content,
long_description_content_type="text/markdown",
url="https://github.com/alankan886/SuperMemo2",
author="Alan Kan",
author_email="",
license="MIT",
classifiers=classifiers,
keywords="spaced-repetition SM-2 SuperMemo Python",
packages=find_packages(),
include_package_data=True,
install_requires=["attrs"],
cmdclass={
"clean": CleanCommand,
},
)