|
| 1 | +""" |
| 2 | +sintautils |
| 3 | +Created by: Samarthya Lykamanuella |
| 4 | +Establishment year: 2025 |
| 5 | +
|
| 6 | +LICENSE NOTICE: |
| 7 | +=============== |
| 8 | +
|
| 9 | +This file is part of sintautils. |
| 10 | +
|
| 11 | +sintautils is free software: you can redistribute it and/or modify it |
| 12 | +under the terms of the GNU General Public License as published by the |
| 13 | +Free Software Foundation, either version 3 of the License, or (at your |
| 14 | +option) any later version. |
| 15 | +
|
| 16 | +sintautils is distributed in the hope that it will be useful, but WITHOUT |
| 17 | +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 18 | +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 19 | +for more details. |
| 20 | +
|
| 21 | +You should have received a copy of the GNU General Public License along |
| 22 | +with sintautils. If not, see <https://www.gnu.org/licenses/>. |
| 23 | +""" |
| 24 | + |
| 25 | +# File copied from PyPI sample project file. |
| 26 | +# SOURCE: https://github.com/pypa/sampleproject/blob/db5806e0a3204034c51b1c00dde7d5eb3fa2532e/setup.py |
| 27 | + |
| 28 | +# Always prefer setuptools over distutils |
| 29 | +from setuptools import setup, find_packages |
| 30 | +import pathlib |
| 31 | + |
| 32 | +here = pathlib.Path(__file__).parent.resolve() |
| 33 | + |
| 34 | +# Get the long description from the README file |
| 35 | +long_description = (here / "README.md").read_text(encoding="utf-8") |
| 36 | + |
| 37 | +# Arguments marked as "Required" below must be included for upload to PyPI. |
| 38 | +# Fields marked as "Optional" may be commented out. |
| 39 | + |
| 40 | +setup( |
| 41 | + # This is the name of your project. The first time you publish this |
| 42 | + # package, this name will be registered for you. It will determine how |
| 43 | + # users can install this project, e.g.: |
| 44 | + # |
| 45 | + # $ pip install sampleproject |
| 46 | + # |
| 47 | + # And where it will live on PyPI: https://pypi.org/project/sampleproject/ |
| 48 | + # |
| 49 | + # There are some restrictions on what makes a valid project name |
| 50 | + # specification here: |
| 51 | + # https://packaging.python.org/specifications/core-metadata/#name |
| 52 | + name="sintautils", # Required |
| 53 | + # Versions should comply with PEP 440: |
| 54 | + # https://www.python.org/dev/peps/pep-0440/ |
| 55 | + # |
| 56 | + # For a discussion on single-sourcing the version across setup.py and the |
| 57 | + # project code, see |
| 58 | + # https://packaging.python.org/guides/single-sourcing-package-version/ |
| 59 | + version="0.0.1", # Required |
| 60 | + # This is a one-line description or tagline of what your project does. This |
| 61 | + # corresponds to the "Summary" metadata field: |
| 62 | + # https://packaging.python.org/specifications/core-metadata/#summary |
| 63 | + description="Python utility package for scraping information on SINTA (Science and Technology Index)", # Optional |
| 64 | + # This is an optional longer description of your project that represents |
| 65 | + # the body of text which users will see when they visit PyPI. |
| 66 | + # |
| 67 | + # Often, this is the same as your README, so you can just read it in from |
| 68 | + # that file directly (as we have already done above) |
| 69 | + # |
| 70 | + # This field corresponds to the "Description" metadata field: |
| 71 | + # https://packaging.python.org/specifications/core-metadata/#description-optional |
| 72 | + long_description=long_description, # Optional |
| 73 | + # Denotes that our long_description is in Markdown; valid values are |
| 74 | + # text/plain, text/x-rst, and text/markdown |
| 75 | + # |
| 76 | + # Optional if long_description is written in reStructuredText (rst) but |
| 77 | + # required for plain-text or Markdown; if unspecified, "applications should |
| 78 | + # attempt to render [the long_description] as text/x-rst; charset=UTF-8 and |
| 79 | + # fall back to text/plain if it is not valid rst" (see link below) |
| 80 | + # |
| 81 | + # This field corresponds to the "Description-Content-Type" metadata field: |
| 82 | + # https://packaging.python.org/specifications/core-metadata/#description-content-type-optional |
| 83 | + long_description_content_type="text/markdown", # Optional (see note above) |
| 84 | + # This should be a valid link to your project's main homepage. |
| 85 | + # |
| 86 | + # This field corresponds to the "Home-Page" metadata field: |
| 87 | + # https://packaging.python.org/specifications/core-metadata/#home-page-optional |
| 88 | + url="https://github.com/groaking/sintautils", # Optional |
| 89 | + # This should be your name or the name of the organization which owns the |
| 90 | + # project. |
| 91 | + author="Samarthya Lykamanuella", # Optional |
| 92 | + maintainer="Samarthya Lykamanuella", |
| 93 | + # This should be a valid email address corresponding to the author listed |
| 94 | + # above. |
| 95 | + author_email="lykamanuella@outlook.com", # Optional |
| 96 | + maintainer_email="lykamanuella@outlook.com", |
| 97 | + # Classifiers help users find your project by categorizing it. |
| 98 | + # |
| 99 | + # For a list of valid classifiers, see https://pypi.org/classifiers/ |
| 100 | + classifiers=[ # Optional |
| 101 | + # How mature is this project? Common values are |
| 102 | + # 3 - Alpha |
| 103 | + # 4 - Beta |
| 104 | + # 5 - Production/Stable |
| 105 | + "Development Status :: 3 - Alpha", |
| 106 | + # Indicate who your project is intended for |
| 107 | + "Intended Audience :: Developers", |
| 108 | + "Intended Audience :: System Administrators", |
| 109 | + "Topic :: Database", |
| 110 | + "Topic :: File Formats :: JSON", |
| 111 | + "Topic :: Software Development :: Libraries", |
| 112 | + "Topic :: Utilities", |
| 113 | + # Pick your license as you wish |
| 114 | + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", |
| 115 | + # Specify the Python versions you support here. In particular, ensure |
| 116 | + # that you indicate you support Python 3. These classifiers are *not* |
| 117 | + # checked by 'pip install'. See instead 'python_requires' below. |
| 118 | + "Programming Language :: Python :: 3", |
| 119 | + "Programming Language :: Python :: 3.9", |
| 120 | + "Programming Language :: Python :: 3.10", |
| 121 | + "Programming Language :: Python :: 3.11", |
| 122 | + "Programming Language :: Python :: 3.12", |
| 123 | + "Programming Language :: Python :: 3.13", |
| 124 | + "Programming Language :: Python :: 3.14", |
| 125 | + # User-defined. |
| 126 | + "Environment :: Console", |
| 127 | + ], |
| 128 | + # This field adds keywords for your project which will appear on the |
| 129 | + # project page. What does your project relate to? |
| 130 | + # |
| 131 | + # Note that this is a list of additional keywords, separated |
| 132 | + # by commas, to be used to assist searching for the distribution in a |
| 133 | + # larger catalog. |
| 134 | + keywords="sinta, kemendikbud, scraper, automation, dikti, ristekdikti, kemdikbud, kemenristek, kemeristekdikti, " |
| 135 | + "synchronization, tools, administrator, admin", # Optional |
| 136 | + # When your source code is in a subdirectory under the sproject root, e.g. |
| 137 | + # `src/`, it is necessary to specify the `package_dir` argument. |
| 138 | + package_dir={"": "src"}, # Optional |
| 139 | + # You can just specify package directories manually here if your project is |
| 140 | + # simple. Or you can use find_packages(). |
| 141 | + # |
| 142 | + # Alternatively, if you just want to distribute a single Python file, use |
| 143 | + # the `py_modules` argument instead as follows, which will expect a file |
| 144 | + # called `my_module.py` to exist: |
| 145 | + # |
| 146 | + # py_modules=["my_module"], |
| 147 | + # |
| 148 | + packages=find_packages(where="src"), # Required |
| 149 | + # Specify which Python versions you support. In contrast to the |
| 150 | + # 'Programming Language' classifiers above, 'pip install' will check this |
| 151 | + # and refuse to install the project if the version does not match. See |
| 152 | + # https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires |
| 153 | + python_requires=">=3.9", |
| 154 | + # This field lists other packages that your project depends on to run. |
| 155 | + # Any package you put here will be installed by pip when your project is |
| 156 | + # installed, so they must be valid existing projects. |
| 157 | + # |
| 158 | + # For an analysis of "install_requires" vs pip's requirements files see: |
| 159 | + # https://packaging.python.org/discussions/install-requires-vs-requirements/ |
| 160 | + install_requires=["lxml", "openpyxl", "requests"], # Optional |
| 161 | + # List additional groups of dependencies here (e.g. development |
| 162 | + # dependencies). Users will be able to install these using the "extras" |
| 163 | + # syntax, for example: |
| 164 | + # |
| 165 | + # $ pip install sampleproject[dev] |
| 166 | + # |
| 167 | + # Similar to `install_requires` above, these must be valid existing |
| 168 | + # projects. |
| 169 | + # extras_require={ # Optional |
| 170 | + # "dev": ["check-manifest"], |
| 171 | + # "test": ["coverage"], |
| 172 | + # }, |
| 173 | + # If there are data files included in your packages that need to be |
| 174 | + # installed, specify them here. |
| 175 | + # package_data={ # Optional |
| 176 | + # "sample": ["package_data.dat"], |
| 177 | + # }, |
| 178 | + # Entry points. The following would provide a command called `sample` which |
| 179 | + # executes the function `main` from this package when invoked: |
| 180 | + # entry_points={ # Optional |
| 181 | + # "console_scripts": [ |
| 182 | + # "sample=sample:main", |
| 183 | + # ], |
| 184 | + # }, |
| 185 | + # List additional URLs that are relevant to your project as a dict. |
| 186 | + # |
| 187 | + # This field corresponds to the "Project-URL" metadata fields: |
| 188 | + # https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use |
| 189 | + # |
| 190 | + # Examples listed include a pattern for specifying where the package tracks |
| 191 | + # issues, where the source is hosted, where to say thanks to the package |
| 192 | + # maintainers, and where to support the project financially. The key is |
| 193 | + # what's used to render the link text on PyPI. |
| 194 | + project_urls={ # Optional |
| 195 | + "Bug Reports": "https://github.com/groaking/sintautils/issues", |
| 196 | + # "Funding": "https://donate.pypi.org", |
| 197 | + # "Say Thanks!": "http://saythanks.io/to/example", |
| 198 | + "GitHub": "https://github.com/groaking/sintautils", |
| 199 | + "Home Page": "https://github.com/groaking/sintautils", |
| 200 | + "Change Log": "https://github.com/groaking/sintautils/blob/main/CHANGELOG.md", |
| 201 | + }, |
| 202 | + # The license of the project. |
| 203 | + license='GNU General Public License v3.0 or later', |
| 204 | +) |
0 commit comments