Skip to content

Commit 25ff0bd

Browse files
authored
Merge pull request #28 from UniversalPython/migrate-to-pyprojecttoml
feat: migrate to pyproject.toml
2 parents 2abc0d4 + ba37d6e commit 25ff0bd

3 files changed

Lines changed: 57 additions & 47 deletions

File tree

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,20 @@ You can also try out UniversalPython in our [live online demo](https://universal
5353
### UniversalPython in Jupyter
5454
Install our Jupyter Kernel to easily use UniversalPython in Jupyter Notebook or Jupyter Lab. Instructions are here: https://github.com/UniversalPython/universalpython_kernel
5555

56-
### Want to add your language? Or edit one?
57-
Follow the documentation [here](./universalpython/languages/README.md) to add a new human language, or edit an existing one.
58-
5956
### Build and release
6057
Install packaging dependencies:
6158
```bash
62-
pip install -U packaging
59+
python -m pip install --upgrade pip setuptools wheel build twine
6360
```
6461

6562
To build:
6663
```bash
67-
python setup.py sdist bdist_wheel
64+
python -m build
6865
```
6966

7067
To release on PyPI:
7168
```bash
72-
twine upload --repository testpypi dist/* --verbose
69+
twine upload --repository testpypi dist/* --verbose --skip-existing
7370
```
7471

7572
### Learn More
@@ -84,6 +81,14 @@ Check out the [documentation](https://universalpython.github.io/docs/intro).
8481

8582
UniversalPython is still growing. Join us to make programming truly universal!
8683

84+
### Want to add your language? Or edit one?
85+
Follow the documentation [here](./universalpython/languages/README.md) to add a new human language, or edit an existing one.
86+
8787
## License
8888

8989
[Apache-2.0 license](./LICENSE)
90+
91+
### Contributors
92+
<a href="https://github.com/UniversalPython/UniversalPython/graphs/contributors">
93+
<img src="https://contrib.rocks/image?repo=UniversalPython/UniversalPython" />
94+
</a>

pyproject.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[build-system]
2+
requires = ["setuptools>=64.0.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "universalpython"
7+
version = "0.1.3"
8+
authors = [
9+
{name = "Saad Bazaz", email = "saadbazaz@hotmail.com"},
10+
]
11+
description = "Universal Python - Write Python in your native language"
12+
readme = "README.md"
13+
requires-python = ">=3.7"
14+
license = {text = "MIT"}
15+
classifiers = [
16+
"Development Status :: 4 - Beta",
17+
"Intended Audience :: Developers",
18+
"Intended Audience :: Education",
19+
"Programming Language :: Python :: 3",
20+
"License :: OSI Approved :: MIT License",
21+
"Operating System :: OS Independent",
22+
"Topic :: Software Development :: Internationalization",
23+
"Topic :: Software Development :: Interpreters",
24+
]
25+
keywords = ["i18n", "localization", "programming-language"]
26+
dependencies = [
27+
"ply>=3.11",
28+
"PyYAML>=6.0",
29+
"Unidecode>=1.3.6",
30+
]
31+
32+
[project.urls]
33+
Homepage = "https://github.com/UniversalPython/UniversalPython"
34+
Repository = "https://github.com/UniversalPython/UniversalPython"
35+
Issues = "https://github.com/UniversalPython/UniversalPython/issues"
36+
37+
[tool.setuptools]
38+
# If your package is in a 'src' directory:
39+
# package-dir = {"" = "src"}
40+
packages = ["universalpython"]
41+
42+
[tool.setuptools.package-data]
43+
universalpython = ["samples/*/*", "languages/*/*.yaml"]
44+
45+
[project.scripts]
46+
universalpython = "universalpython.universalpython:main"

setup.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)