Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Import resources example
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fconil small programs
Python
Bases
Import resources example
Commits
178f16ea
Commit
178f16ea
authored
2 years ago
by
Françoise Conil
Browse files
Options
Downloads
Patches
Plain Diff
Add .gitignore for flit to build the package
parent
ead472b1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+5
-0
5 additions, 0 deletions
.gitignore
README.md
+24
-0
24 additions, 0 deletions
README.md
with
29 additions
and
0 deletions
.gitignore
0 → 100644
+
5
−
0
View file @
178f16ea
*~
*.pyc
__pycache__
*.csv
This diff is collapsed.
Click to expand it.
README.md
+
24
−
0
View file @
178f16ea
...
...
@@ -13,3 +13,27 @@ Packaging informations :
-
https://packaging.python.org/en/latest/tutorials/packaging-projects/
-
https://choosealicense.com/
## Troubleshooting
If we have untracked data files in the package tree, flist refuses to build the
package.
```
shell
$
flit build
Fetching list of valid trove classifiers I-flit.validate
Untracked or deleted files
in
the
source
directory. Commit, undo or ignore these files
in
your VCS.
```
If we add a line to ignore, e.g. all csv files, in
`.gitignore`
we get a warning when we want to add one.
```
shell
$
git add src/import-resources-example/data/WPP2022_TotalPopulationBySex.csv
Les chemins suivants sont ignorés par un de vos fichiers .gitignore :
src/import-resources-example/data/WPP2022_TotalPopulationBySex.csv
astuce: Utilisez
-f
si vous voulez vraiment les ajouter.
astuce: Éliminez ce message en lançant
astuce:
"git config advice.addIgnoredFile false"
```
As we can append the data files with
`-f`
, I will ignore the data file in
`.gitignore`
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment