|
1 | | -import os |
2 | 1 | import sys |
3 | 2 | from pathlib import Path |
4 | 3 |
|
|
36 | 35 | "gidgethub~=5.3.0", |
37 | 36 | "pymongo~=4.12.1", |
38 | 37 | ) |
39 | | -UTIL_NAME = os.getenv("UTIL_NAME") |
40 | | -UTIL_VERSION = os.getenv("UTIL_VERSION") |
41 | 38 |
|
42 | 39 |
|
43 | 40 | if "--build-requirements" in sys.argv: |
|
52 | 49 | if "--install-requirements" in sys.argv: |
53 | 50 | print(" ".join(INSTALL_REQUIREMENTS)) |
54 | 51 | sys.exit(0) |
55 | | -if UTIL_NAME is None or UTIL_VERSION is None: |
56 | | - print("Please provide UTIL_NAME and UTIL_VERSION environment variables.") |
57 | | - sys.exit(1) |
58 | 52 | try: |
59 | 53 | from Cython.Build import cythonize |
60 | 54 | from setuptools import Extension, find_packages, setup |
|
67 | 61 |
|
68 | 62 |
|
69 | 63 | setup( |
70 | | - name=f"{UTIL_NAME}", |
71 | | - version=f"{UTIL_VERSION}", |
72 | | - description="Code plagiarism searching package.", |
73 | | - author="Artyom Semidolin, Dmitry Nikolaev, Alexander Evsikov", |
74 | | - url="https://github.com/OSLL/code-plagiarism", |
75 | 64 | long_description=Path("README.md").read_text(encoding="utf-8"), |
76 | 65 | long_description_content_type="text/markdown", |
77 | | - license="MIT License", |
78 | 66 | platforms=["linux"], |
79 | | - classifiers=[ |
80 | | - "Development Status :: 4 - Beta", |
81 | | - "Environment :: Console", |
82 | | - "Intended Audience :: Education", |
83 | | - "License :: OSI Approved :: MIT License", |
84 | | - "Programming Language :: Python :: 3", |
85 | | - "Programming Language :: Python :: 3.12", |
86 | | - "Topic :: Software Development :: Plagiarism Detection", |
87 | | - ], |
88 | 67 | package_dir={"": "src"}, |
89 | 68 | packages=find_packages("src"), |
90 | 69 | ext_modules=cythonize( |
91 | 70 | [ |
92 | | - Extension("*", [f"src/{UTIL_NAME}/**/*.py"]), |
| 71 | + Extension("*", [f"src/codeplag/**/*.py"]), |
93 | 72 | ], |
94 | 73 | language_level=3, |
95 | 74 | ), |
96 | | - python_requires=">=3.12", |
97 | | - install_requires=INSTALL_REQUIREMENTS, |
98 | | - entry_points={ |
99 | | - "console_scripts": [ |
100 | | - f"{UTIL_NAME} = {UTIL_NAME}:main", |
101 | | - ] |
102 | | - }, |
103 | 75 | ) |
0 commit comments