Skip to content

Commit c66fd7f

Browse files
committed
More updates
1 parent 123d115 commit c66fd7f

File tree

5 files changed

+46
-11
lines changed

5 files changed

+46
-11
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install build twine
20+
- name: Build package
21+
run: python -m build
22+
- name: Publish package
23+
env:
24+
TWINE_USERNAME: __token__
25+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
26+
run: |
27+
python -m twine upload dist/*

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# numpar
22

3-
[Logo Placeholder - Consider adding a simple, modern logo that represents number parsing/conversion]
3+
![A simple, modern logo that represents number parsing/conversion](assets/images/numpar_logo.jpg)
44

55
A Python package for parsing human-friendly number formats into floats. Handles various number formats including comma separators, percentages, and magnitude suffixes (k, M, B).
66

@@ -16,7 +16,7 @@ A Python package for parsing human-friendly number formats into floats. Handles
1616
- Whitespace handling
1717
- Combined format support (e.g., "1,234.56k")
1818

19-
[Screenshot Placeholder - Consider adding a terminal screenshot showing various parsing examples]
19+
![Example usage of numpar](assets/images/screenshot.png)
2020

2121
## Installation
2222

@@ -107,9 +107,4 @@ To publish a new version to PyPI:
107107

108108
## License
109109

110-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
111-
112-
## Acknowledgments
113-
114-
- [Badge Placeholder - Consider adding badges for build status, test coverage, PyPI version]
115-
- Thanks to all contributors who help improve this package
110+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

assets/images/numpar_logo.jpg

97.5 KB
Loading

assets/images/screenshot.png

153 KB
Loading

setup.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
from setuptools import setup, find_packages
2+
from pathlib import Path
3+
4+
# Read the contents of README.md
5+
this_directory = Path(__file__).parent
6+
long_description = (this_directory / "README.md").read_text()
27

38
setup(
49
name="numpar",
5-
version="0.1.0",
10+
version="0.1.1",
611
packages=find_packages(),
712
description="A package for parsing number strings in various formats",
8-
author="User",
9-
author_email="user@example.com",
13+
long_description=long_description,
14+
long_description_content_type="text/markdown",
15+
author="Just",
16+
author_email="justin@bokuga.com",
1017
python_requires=">=3.6",
1118
install_requires=[],
1219
test_suite="tests",
20+
url="https://github.com/jkrup/numpar",
21+
classifiers=[
22+
"Programming Language :: Python :: 3",
23+
"License :: OSI Approved :: MIT License",
24+
"Operating System :: OS Independent",
25+
],
1326
)

0 commit comments

Comments
 (0)