Skip to content

Commit 571a6dc

Browse files
committed
New component from cookiecutter
0 parents  commit 571a6dc

35 files changed

+4588
-0
lines changed

.cruft.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"template": "https://github.com/blackary/cookiecutter-streamlit-component/",
3+
"commit": "c972054b7b0890a1aa1c02e792bedc71c525ea87",
4+
"checkout": null,
5+
"context": {
6+
"cookiecutter": {
7+
"author_name": "Peter Parente",
8+
"author_email": "[email protected]",
9+
"project_name": "Streamlit Browser Timezone",
10+
"package_name": "streamlit-tz",
11+
"import_name": "streamlit_tz",
12+
"description": "Streamlit component that returns the user browser IANA timezone",
13+
"deployment_via_github_actions": "y",
14+
"working_with_dataframes": "n",
15+
"open_source_license": "MIT license",
16+
"_template": "https://github.com/blackary/cookiecutter-streamlit-component/"
17+
}
18+
},
19+
"directory": null
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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: [created]
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: "3.x"
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install setuptools wheel twine
24+
- name: Build and publish
25+
env:
26+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
27+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
28+
run: |
29+
pwd
30+
python setup.py sdist bdist_wheel
31+
twine upload dist/*

.gitignore

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# OSX useful to ignore
7+
*.DS_Store
8+
.AppleDouble
9+
.LSOverride
10+
11+
# Thumbnails
12+
._*
13+
14+
# Files that might appear in the root of a volume
15+
.DocumentRevisions-V100
16+
.fseventsd
17+
.Spotlight-V100
18+
.TemporaryItems
19+
.Trashes
20+
.VolumeIcon.icns
21+
.com.apple.timemachine.donotpresent
22+
23+
# Directories potentially created on remote AFP share
24+
.AppleDB
25+
.AppleDesktop
26+
Network Trash Folder
27+
Temporary Items
28+
.apdisk
29+
30+
# C extensions
31+
*.so
32+
33+
# Distribution / packaging
34+
.Python
35+
env/
36+
venv/
37+
build/
38+
develop-eggs/
39+
dist/
40+
downloads/
41+
eggs/
42+
.eggs/
43+
lib/
44+
lib64/
45+
parts/
46+
sdist/
47+
var/
48+
*.egg-info/
49+
.installed.cfg
50+
*.egg
51+
52+
# PyInstaller
53+
# Usually these files are written by a python script from a template
54+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
55+
*.manifest
56+
*.spec
57+
58+
# Installer logs
59+
pip-log.txt
60+
pip-delete-this-directory.txt
61+
62+
# Unit test / coverage reports
63+
htmlcov/
64+
.tox/
65+
.coverage
66+
.coverage.*
67+
.cache
68+
nosetests.xml
69+
coverage.xml
70+
*,cover
71+
.hypothesis/
72+
.pytest_cache/
73+
74+
# Translations
75+
*.mo
76+
*.pot
77+
78+
# Django stuff:
79+
*.log
80+
81+
# Sphinx documentation
82+
docs/_build/
83+
84+
# IntelliJ Idea family of suites
85+
.idea
86+
*.iml
87+
## File-based project format:
88+
*.ipr
89+
*.iws
90+
## mpeltonen/sbt-idea plugin
91+
.idea_modules/
92+
93+
# PyBuilder
94+
target/
95+
96+
# Cookiecutter
97+
output/
98+
python_boilerplate/
99+
cookiecutter-pypackage-env/
100+
101+
# IDE settings
102+
.vscode/
103+
104+
# direnv
105+
.envrc
106+
.direnv/
107+
108+
# streamlit
109+
.streamlit/secrets.toml

0 commit comments

Comments
 (0)