-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(packaging): python module structure and dependencies (#29)
Tracking issue: #28 - pin python-dateutil version to 2.8.1 - added python-dateutil as a dependency in setup.py - added `__init__.py` in every directory under src/ - fixed README Tests done: ```bash # see https://packaging.python.org/tutorials/packaging-projects/#generating-distribution-archives # this generates: google-events-0.1.1.tar.gz google_events-0.1.1-py2.py3-none-any.whl under dist/ python3 setup.py sdist bdist_wheel # install the package pip3 install dist/google_events-0.1.1-py2.py3-none-any.whl # import successfully Python 3.9.1 (default, Jan 5 2021, 14:05:22) [Clang 12.0.0 (clang-1200.0.32.27)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from google.events.cloud.pubsub.v1 import MessagePublishedData >>> MessagePublishedData <class 'google.events.cloud.pubsub.v1.MessagePublishedData.MessagePublishedData'> >>> ```
- Loading branch information
Showing
21 changed files
with
52 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-r requirements.txt | ||
black==20.8b1 | ||
pylint==2.6.0 | ||
pytest==6.2.2 | ||
stringcase==1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Required from types that reads/parses date and times (e.g. google.events.cloud.audit.v1.LogEntryData). | ||
python-dateutil | ||
python-dateutil==2.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.