Skip to content

Commit e5e6a11

Browse files
feat(structure): base project structure
1 parent ff080a2 commit e5e6a11

File tree

10 files changed

+402
-0
lines changed

10 files changed

+402
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Publish
3+
on:
4+
release:
5+
types: [published]
6+
jobs:
7+
publish-pypi:
8+
runs-on: ubuntu-latest
9+
name: Publish on Test PyPI
10+
permissions:
11+
id-token: write # IMPORTANT: Mandatory for Trusted Publishing (gh-action-pypi-publish)
12+
# Specifying a GitHub environment is optional, but strongly encouraged
13+
environment:
14+
name: testpypi
15+
url: https://pypi.org/project/hasansezertasan/${{ github.ref_name }}
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version-file: '.python-version'
23+
- name: Setup uv
24+
id: setup-uv
25+
uses: astral-sh/setup-uv@v6
26+
with:
27+
enable-cache: true
28+
- name: Restore cache
29+
if: steps.setup-uv.outputs.cache-hit == 'true'
30+
run: echo "Cache was restored"
31+
- name: Build the Package
32+
run: uv build --no-sources --quiet
33+
- name: Publish to PyPI
34+
run: uv publish --index testpypi --quite --trusted-publishing always

.gitignore

Lines changed: 292 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,292 @@
1+
### Generated by gibo (https://github.com/simonwhitaker/gibo)
2+
### https://raw.github.com/github/gitignore/1d4819b2dc2c30732cb4db8cdb406ee4c2aba50b/Global/macOS.gitignore
3+
4+
# General
5+
.DS_Store
6+
.AppleDouble
7+
.LSOverride
8+
Icon[]
9+
10+
# Thumbnails
11+
._*
12+
13+
# Files that might appear in the root of a volume
14+
.DocumentRevisions-V100
15+
.fseventsd
16+
.Spotlight-V100
17+
.TemporaryItems
18+
.Trashes
19+
.VolumeIcon.icns
20+
.com.apple.timemachine.donotpresent
21+
22+
# Directories potentially created on remote AFP share
23+
.AppleDB
24+
.AppleDesktop
25+
Network Trash Folder
26+
Temporary Items
27+
.apdisk
28+
### Generated by gibo (https://github.com/simonwhitaker/gibo)
29+
### https://raw.github.com/github/gitignore/1d4819b2dc2c30732cb4db8cdb406ee4c2aba50b/Global/Windows.gitignore
30+
31+
# Windows thumbnail cache files
32+
Thumbs.db
33+
Thumbs.db:encryptable
34+
ehthumbs.db
35+
ehthumbs_vista.db
36+
37+
# Dump file
38+
*.stackdump
39+
40+
# Folder config file
41+
[Dd]esktop.ini
42+
43+
# Recycle Bin used on file shares
44+
$RECYCLE.BIN/
45+
46+
# Windows Installer files
47+
*.cab
48+
*.msi
49+
*.msix
50+
*.msm
51+
*.msp
52+
53+
# Windows shortcuts
54+
*.lnk
55+
### Generated by gibo (https://github.com/simonwhitaker/gibo)
56+
### https://raw.github.com/github/gitignore/1d4819b2dc2c30732cb4db8cdb406ee4c2aba50b/Global/Linux.gitignore
57+
58+
*~
59+
60+
# temporary files which can be created if a process still has a handle open of a deleted file
61+
.fuse_hidden*
62+
63+
# Metadata left by Dolphin file manager, which comes with KDE Plasma
64+
.directory
65+
66+
# Linux trash folder which might appear on any partition or disk
67+
.Trash-*
68+
69+
# .nfs files are created when an open file is removed but is still being accessed
70+
.nfs*
71+
72+
# Log files created by default by the nohup command
73+
nohup.out
74+
### Generated by gibo (https://github.com/simonwhitaker/gibo)
75+
### https://raw.github.com/github/gitignore/1d4819b2dc2c30732cb4db8cdb406ee4c2aba50b/Global/VisualStudioCode.gitignore
76+
77+
.vscode/*
78+
!.vscode/settings.json
79+
!.vscode/tasks.json
80+
!.vscode/launch.json
81+
!.vscode/extensions.json
82+
!.vscode/*.code-snippets
83+
!*.code-workspace
84+
85+
# Built Visual Studio Code Extensions
86+
*.vsix
87+
### Generated by gibo (https://github.com/simonwhitaker/gibo)
88+
### https://raw.github.com/github/gitignore/1d4819b2dc2c30732cb4db8cdb406ee4c2aba50b/Python.gitignore
89+
90+
# Byte-compiled / optimized / DLL files
91+
__pycache__/
92+
*.py[codz]
93+
*$py.class
94+
95+
# C extensions
96+
*.so
97+
98+
# Distribution / packaging
99+
.Python
100+
build/
101+
develop-eggs/
102+
dist/
103+
downloads/
104+
eggs/
105+
.eggs/
106+
lib/
107+
lib64/
108+
parts/
109+
sdist/
110+
var/
111+
wheels/
112+
share/python-wheels/
113+
*.egg-info/
114+
.installed.cfg
115+
*.egg
116+
MANIFEST
117+
118+
# PyInstaller
119+
# Usually these files are written by a python script from a template
120+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
121+
*.manifest
122+
*.spec
123+
124+
# Installer logs
125+
pip-log.txt
126+
pip-delete-this-directory.txt
127+
128+
# Unit test / coverage reports
129+
htmlcov/
130+
.tox/
131+
.nox/
132+
.coverage
133+
.coverage.*
134+
.cache
135+
nosetests.xml
136+
coverage.xml
137+
*.cover
138+
*.py.cover
139+
.hypothesis/
140+
.pytest_cache/
141+
cover/
142+
143+
# Translations
144+
*.mo
145+
*.pot
146+
147+
# Django stuff:
148+
*.log
149+
local_settings.py
150+
db.sqlite3
151+
db.sqlite3-journal
152+
153+
# Flask stuff:
154+
instance/
155+
.webassets-cache
156+
157+
# Scrapy stuff:
158+
.scrapy
159+
160+
# Sphinx documentation
161+
docs/_build/
162+
163+
# PyBuilder
164+
.pybuilder/
165+
target/
166+
167+
# Jupyter Notebook
168+
.ipynb_checkpoints
169+
170+
# IPython
171+
profile_default/
172+
ipython_config.py
173+
174+
# pyenv
175+
# For a library or package, you might want to ignore these files since the code is
176+
# intended to run in multiple environments; otherwise, check them in:
177+
# .python-version
178+
179+
# pipenv
180+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
181+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
182+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
183+
# install all needed dependencies.
184+
#Pipfile.lock
185+
186+
# UV
187+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
188+
# This is especially recommended for binary packages to ensure reproducibility, and is more
189+
# commonly ignored for libraries.
190+
#uv.lock
191+
192+
# poetry
193+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
194+
# This is especially recommended for binary packages to ensure reproducibility, and is more
195+
# commonly ignored for libraries.
196+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
197+
#poetry.lock
198+
#poetry.toml
199+
200+
# pdm
201+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
202+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
203+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
204+
#pdm.lock
205+
#pdm.toml
206+
.pdm-python
207+
.pdm-build/
208+
209+
# pixi
210+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
211+
#pixi.lock
212+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
213+
# in the .venv directory. It is recommended not to include this directory in version control.
214+
.pixi
215+
216+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
217+
__pypackages__/
218+
219+
# Celery stuff
220+
celerybeat-schedule
221+
celerybeat.pid
222+
223+
# SageMath parsed files
224+
*.sage.py
225+
226+
# Environments
227+
.env
228+
.envrc
229+
.venv
230+
env/
231+
venv/
232+
ENV/
233+
env.bak/
234+
venv.bak/
235+
236+
# Spyder project settings
237+
.spyderproject
238+
.spyproject
239+
240+
# Rope project settings
241+
.ropeproject
242+
243+
# mkdocs documentation
244+
/site
245+
246+
# mypy
247+
.mypy_cache/
248+
.dmypy.json
249+
dmypy.json
250+
251+
# Pyre type checker
252+
.pyre/
253+
254+
# pytype static type analyzer
255+
.pytype/
256+
257+
# Cython debug symbols
258+
cython_debug/
259+
260+
# PyCharm
261+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
262+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
263+
# and can be added to the global gitignore or merged into this file. For a more nuclear
264+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
265+
#.idea/
266+
267+
# Abstra
268+
# Abstra is an AI-powered process automation framework.
269+
# Ignore directories containing user credentials, local state, and settings.
270+
# Learn more at https://abstra.io/docs
271+
.abstra/
272+
273+
# Visual Studio Code
274+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
275+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
276+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
277+
# you could uncomment the following to ignore the entire vscode folder
278+
# .vscode/
279+
280+
# Ruff stuff:
281+
.ruff_cache/
282+
283+
# PyPI configuration file
284+
.pypirc
285+
286+
# Marimo
287+
marimo/_static/
288+
marimo/_lsp/
289+
__marimo__/
290+
291+
# Streamlit
292+
.streamlit/secrets.toml

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.8

LICENSE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2025-present Hasan Sezer Taşan <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

PYPI_README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# hasansezertasan
2+
3+
[![PyPI - Version](https://img.shields.io/pypi/v/hasansezertasan.svg)](https://pypi.org/project/hasansezertasan)
4+
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hasansezertasan.svg)](https://pypi.org/project/hasansezertasan)
5+
6+
-----
7+
8+
## Table of Contents
9+
10+
- [Installation](#installation)
11+
- [License](#license)
12+
13+
## Installation
14+
15+
```console
16+
pip install hasansezertasan
17+
```
18+
19+
## Usage
20+
21+
```sh
22+
uv run hasansezertasan
23+
```
24+
25+
## License
26+
27+
`hasansezertasan` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# python-ankara-paketleme-101
2+
23
Python Ankara Topluluğu Workshop'u için hazırlanmıştır. Bu template üzerinden Python Packaging 🐍, PyPI 📦, GitHub Actions 🤖 ve Trusted Publishing ⭐️ gibi konulara değineceğiz. Sonunda hep birlikte https://test.pypi.org üzerinden paket dağıtımı yapmış olacağız! 🚀
4+
5+
<!-- TODO hasansezertasan: Burayı doldur. -->

0 commit comments

Comments
 (0)