Skip to content
Merged
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
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest # Usando a última versão do Ubuntu
runs-on: ubuntu-latest

steps:
- name: Check out code
Expand All @@ -24,27 +24,28 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Instalar dependências de acordo com seu requirements.txt
pip install -r requirements.txt

- name: Install setuptools and wheel
run: |
pip install setuptools wheel # Instalar setuptools e wheel para a criação de pacotes
pip install setuptools wheel

- name: Run tests with pytest
run: |
pytest # Rodando os testes com pytest
pytest

# Etapas para criação de distribuição
# Build distribution (sempre executa para validar)
- name: Build distribution
run: |
python setup.py sdist bdist_wheel # Criando os arquivos de distribuição
python setup.py sdist bdist_wheel

# Etapas para publicar no PyPI
# Publish to PyPI (APENAS quando push para main, não em PRs)
- name: Publish to PyPI
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
pip install twine # Instala o Twine para o upload
twine upload dist/* # Faz o upload dos pacotes gerados para o PyPI
pip install twine
twine upload dist/*
env:
TWINE_USERNAME: "__token__" # Nome de usuário no PyPI para autenticação com token
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} # Usando o GitHub Secrets para o API token
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.3] - 2025-08-15

### Fixed
- Resolved duplicate PyPI upload issue in CI/CD pipeline
- Fixed workflow configuration to prevent double publication

## [0.1.2] - 2025-08-15

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def read_readme():

setup(
name='atmos-bud',
version='0.1.2',
version='0.1.3',
description='Program for analyzing the heat, vorticity and humidity budgets of limited regions on the atmosphere.',
long_description=read_readme(),
long_description_content_type='text/markdown',
Expand Down
4 changes: 2 additions & 2 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
A comprehensive Python package for analyzing heat, vorticity, and humidity budgets
of limited regions in the atmosphere using reanalysis data.

Version: 0.1.2
Version: 0.1.3
"""

__version__ = "0.1.2"
__version__ = "0.1.3"
__author__ = "Danilo Couto de Souza"
__email__ = "danilo.oceano@gmail.com"
__license__ = "GPL-3.0"
Expand Down