Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to latest Python version and ensure standard library usage #73

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
7 changes: 7 additions & 0 deletions scripts/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@


def run_command(command):
"""
Executes a given command using the subprocess module.

Args:
command (str): The command to be executed.
"""
subprocess.run(command, shell=True, check=True)


def main():
"""Main function to package and upload a Python package using setup.py and twine."""
sdist_command = "python setup.py sdist"
twine_command = "twine upload dist/*"

Expand Down
Loading