Skip to content

chore: add setup.py for library_generation #2447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 8, 2024
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
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ target/
.venv

# library generation
output/
library_generation/output/
library_generation/test/output
library_generation/test/googleapis
library_generation/test/resources/integration/golden
showcase/scripts/output/
**/output/
**/googleapis
library_generation/test/**/golden*/
library_generation/test/resources/test_repo_level_postprocess/
**/*egg-info/
**/build/
1 change: 0 additions & 1 deletion library_generation/.gitignore

This file was deleted.

23 changes: 23 additions & 0 deletions library_generation/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""
Package information of library_generation python scripts
"""

from setuptools import setup

setup(name='library_generation',
version='0.1',
package_dir={
'library_generation': '.',
},
package_data={
'library_generation': [
'*.sh',
'templates/*.j2',
'gapic-generator-java-wrapper',
'requirements.*',
'owlbot/src/requirements.*',
'owlbot/bin/*.sh',
'owlbot/templates/**/*.j2',
],
}
)
1 change: 1 addition & 0 deletions library_generation/test/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def test_generate_repo(self):
@classmethod
def __pull_repo_to(cls, dest: Path, repo: str, committish: str):
repo_url = f"{repo_prefix}/{repo}"
print(f'Cloning repository {repo_url}')
repo = Repo.clone_from(repo_url, dest)
repo.git.checkout(committish)

Expand Down