Skip to content

Commit

Permalink
Merge pull request #113 from soehms/refactor_project_code
Browse files Browse the repository at this point in the history
Refactor project specific code
  • Loading branch information
Matthias Köppe authored Jan 12, 2023
2 parents fed61a0 + 5b18f3c commit 4bc1db7
Show file tree
Hide file tree
Showing 3 changed files with 487 additions and 296 deletions.
51 changes: 50 additions & 1 deletion migrate.cfg.sagetracmigrationarchive
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ url: https://trac.sagemath.org/xmlrpc
# url: http://username:[email protected]/trac/login/xmlrpc

# optional path to trac instance used to convert some attachments
# path: /path/to/trac/instance
path: sage_trac

# optional prefix used for Trac milestones
milestone_prefix: sage-

# optional url for cgit repository access
cgit_url: https://git.sagemath.org/sage.git/

# if no, a trac ticket reference is converted to the corresponding issue reference
keep_trac_ticket_references: yes
Expand Down Expand Up @@ -41,6 +47,43 @@ keywords_to_labels: {'beginner': 'good first issue'}
# Migrate milestones
migrate_milestones: yes

# Map for certain Trac milestones to GitHub labels
milestones_to_labels = {
'sage-duplicate/invalid/wontfix': 'duplicate/invalid/wontfix',
'sage-duplicate/invalid': 'duplicate/invalid/wontfix',
'sage-duplicate': 'duplicate/invalid/wontfix',
'sage-wait': 'pending',
'sage-pending': 'pending',
'sage-feature': 'feature',
'sage-wishlist': 'wishlist',
'sage-combinat': 'component: combinatorics',
'sage-symbolics': 'component: symbolics',
'sage-i18n': 'component: translations'}

# Map for canceld Trac milestones to GitHub milestones
canceled_milestones = {
'sage-2.8.4.3': 'sage-2.8.5',
'sage-3.2.4': 'sage-3.3',
'sage-4.0.3': 'sage-4.1',
'sage-4.1.3': 'sage-4.2',
'sage-4.4.5': 'sage-4.5',
'sage-4.7.3': 'sage-4.8',
'sage-6.11': 'sage-7.0',
'sage-7.7': 'sage-8.0'}

# Map for certain Trac components to GitHub labels
components_to_labels = {
'solaris': 'porting: solaris',
'cygwin': 'porting: cygwin',
'freebsd': 'porting: bsd',
'aix or hp-ux ports': 'porting: aix or hp-ux',
'experimental package': 'packages: experimental',
'optional packages': 'packages: optional',
'plotting': 'graphics',
'doctest': 'doctest coverage',
'sage-check': 'spkg-check'}


[attachments]

# Export attachement as files to the local filesystem or try to upload them as Gist?
Expand Down Expand Up @@ -84,6 +127,9 @@ project_name: sagemath/sage
# GitHub password (if no token specified)
#password: secret

# optional prefix used for GitHub milestones
milestone_prefix: sage-

# Where to write a migration archive
migration_archive: archive

Expand Down Expand Up @@ -1055,3 +1101,6 @@ usernames = {
'arattan': None,
'joskarsson': None,
'shahuwang': None}


unknown_users_prefix: sagetrac-
3 changes: 3 additions & 0 deletions migrate.cfg.sagetracwikionly
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ url: https://trac.sagemath.org/xmlrpc
# optional path to trac instance used to convert some attachments
# path: /path/to/trac/instance

# optional url for cgit repository access
cgit_url: https://git.sagemath.org/sage.git/

# if no, a trac ticket reference is converted to the corresponding issue reference
keep_trac_ticket_references: yes

Expand Down
Loading

0 comments on commit 4bc1db7

Please sign in to comment.