File tree Expand file tree Collapse file tree 4 files changed +118
-1
lines changed Expand file tree Collapse file tree 4 files changed +118
-1
lines changed Original file line number Diff line number Diff line change 1+ # This workflows will upload a Python Package using Twine when a release is created
2+ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+ name : Upload Python Package
5+
6+ on :
7+ pull_request :
8+ types : [assigned, opened, reopened]
9+
10+ jobs :
11+ deploy :
12+
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Set up Python
18+ uses : actions/setup-python@v2
19+ with :
20+ python-version : ' 3.x'
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install setuptools wheel twine
25+ - name : Build and publish
26+ env :
27+ TWINE_USERNAME : ${{ secrets.TESTPYPI_USERNAME }}
28+ TWINE_PASSWORD : ${{ secrets.TESTPYPI_PASSWORD }}
29+ run : |
30+ python setup.py sdist bdist_wheel
31+ twine upload --repository testpypi dist/*
Original file line number Diff line number Diff line change 1+ # This workflows will upload a Python Package using Twine when a release is created
2+ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+ name : Upload Python Package
5+
6+ on :
7+ release :
8+ types : [published, edited]
9+
10+ jobs :
11+ deploy :
12+
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Set up Python
18+ uses : actions/setup-python@v2
19+ with :
20+ python-version : ' 3.x'
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install setuptools wheel twine
25+ - name : Build and publish
26+ env :
27+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
28+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
29+ run : |
30+ python setup.py sdist bdist_wheel
31+ twine upload dist/*
Original file line number Diff line number Diff line change 11# pyvba
2- A tool to browse and interact with win32com vba-based applications
2+ ![ PyPI - Python Version] ( https://img.shields.io/pypi/pyversions/pyvba )
3+ ![ PyPI] ( https://img.shields.io/pypi/v/pyvba )
4+ ![ GitHub] ( https://img.shields.io/github/license/TheEric960/pyvba )
5+
6+
7+ The pyvba package was designed to gather data from VBA-based applications (e.g. Microsoft Excel, CATIA, etc.). It
8+ may also be used to assist programming VBA macro scripts in a more sensical language.
9+
10+ ## Getting Started
11+ Install the Python Package:
12+ ``` cmd
13+ pip install pyvba
14+ ```
15+
16+ To export data from a VBA program:
17+ ``` python
18+ import pyvba
19+
20+ catia = pyvba.Browser(" CATIA.Application" )
21+ active_document = catia.ActiveDocument
22+
23+ exporter = pyvba.XMLExport(active_document)
24+ exporter.save(" output" , r " C:\D ocuments" )
25+ ```
26+
27+ The current supported output types are XML and JSON formats.
28+
29+ ## Developer Notes
30+ This package is still in alpha. Hence, there are still some problematic bugs and issues that cause errors in certain
31+ applications. Contributors are welcome! The project is [ hosted on GitHub] ( https://github.com/TheEric960/pyvba ) . Report
32+ any issues at [ the issue tracker] ( https://github.com/TheEric960/pyvba/issues ) , but please check to see if the issue
33+ already exists!
Original file line number Diff line number Diff line change 1+ import setuptools
2+
3+ with open ("README.md" , "r" ) as fh :
4+ long_description = fh .read ()
5+
6+ setuptools .setup (
7+ name = "pyvba" ,
8+ version = "0.5.0" ,
9+ author = "TheEric960" ,
10+ description = "Data mine and write scrips for VBA applications on Windows." ,
11+ long_description = long_description ,
12+ long_description_content_type = "text/markdown" ,
13+ url = "https://github.com/TheEric960/pyvba" ,
14+ packages = setuptools .find_packages (),
15+ classifiers = [
16+ "Development Status :: 3 - Alpha" ,
17+ "Environment :: Win32 (MS Windows)" ,
18+ "License :: OSI Approved :: MIT License" ,
19+ "Natural Language :: English" ,
20+ "Operating System :: Microsoft :: Windows" ,
21+ "Programming Language :: Python :: 3" ,
22+ ],
23+ python_requires = '>=3' ,
24+ )
You can’t perform that action at this time.
0 commit comments